move pyyaml to try block due to cyclic dependency
Merge pull request #3 from RexGibson/move_pyyaml

move pyyaml to try block due to cyclic dependency